import App from './App'
import Vue from 'vue'
import store from './store'
import uView from 'uview-ui'
import mixin from './core/mixins/app'
import bootstrap from './core/bootstrap'
import './js_sdk/ican-H5Api/ican-H5Api'

Vue.config.productionTip = false

App.mpType = 'app'

// 载入uView库
Vue.use(uView)

import {
	navTo,
  showToast,
  showSuccess,
  showError,
} from './core/app'

// 全局mixin
Vue.mixin(mixin);

// 挂载全局函数
Vue.prototype.$toast = showToast
Vue.prototype.$success = showSuccess
Vue.prototype.$error = showError
Vue.prototype.$navTo = navTo



const app = new Vue({
  ...App,
	store
})
app.$mount()